package com.itheima.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author :WuJunJie
 * packageName :com.example.demo.controller
 * fileName :ReqiureController
 * creationTime :2022-11-10 16:05
 */
@RestController
@RequestMapping("Request")
public class RequestController {
    @Autowired
    private RestTemplate restTemplate;

    public Object request(){
        Object object = restTemplate.getForObject("http://192.168.13.22:8080/demo/method/132435646354153212", Object.class);

        return object;
    }
}
